package com.vue.admin.system.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.annotations.*;
import com.example.utils.Results;
import com.vue.admin.system.model.SysDept;
import com.vue.admin.system.model.SysMenu;
import com.vue.admin.system.service.DeptService;
import com.vue.admin.system.service.MenuService;
import com.vue.admin.utils.Result;

import java.util.List;


/**
 * @Classname SystemController
 * @Description TODO
 * @Date 2022/8/19 21:08
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Auth
@RestController("/system")
public class SystemController {

    @Autowired
    MenuService menuService;

    @GetMapping("/test")
    public JSONObject testCOntroller(){
        return Results.success("测试111111");
    }


    @GetMapping(value = "/getImage",desc = "ruoyi获取验证码")
    public JSONObject getImageController(){
        String str="{\"msg\":\"操作成功\",\"img\":\"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\",\"code\":200,\"captchaOnOff\":true,\"uuid\":\"d8d0bb3ffa14406d900935dd9e6b55bc\"}";
        JSONObject jsonObject=JSONObject.parseObject(str);
        return jsonObject;
    }

    @PostMapping(value = "/login",desc = "ruoyi登录")
    public JSONObject loginController(){
        String str = "{\"msg\":\"操作成功\",\"code\":200,\"token\":\"eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImYyYmVkMjQxLTcxNDktNGFmMC1hOWI3LTkyNDRlMzRhMjg3OCJ9.-1I41BuhBx-5brkqQeTqhZAAlaAnMvbrvpO4AwbmcQc8AM_N8Q-XEQiKjI7d1nMWHV9__PbeL1c7CNFCLUilTw\"}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        return jsonObject;
    }

    @GetMapping(value = "/getInfo",desc = "ruoyi获取用户信息")
    public JSONObject getInfoController(){
        String str="{\"msg\":\"操作成功\",\"code\":200,\"permissions\":[\"*:*:*\"],\"roles\":[\"admin\"],\"user\":{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:00:20\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"管理员\",\"params\":{\"@type\":\"java.util.HashMap\"},\"userId\":1,\"deptId\":103,\"userName\":\"admin\",\"nickName\":\"若依\",\"email\":\"ry@163.com\",\"phonenumber\":\"15888888888\",\"sex\":\"1\",\"avatar\":\"\",\"password\":\"$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2\",\"status\":\"0\",\"delFlag\":\"0\",\"loginIp\":\"218.81.9.16\",\"loginDate\":\"2022-08-20T16:33:45.000+08:00\",\"dept\":{\"searchValue\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{\"@type\":\"java.util.HashMap\"},\"deptId\":103,\"parentId\":101,\"ancestors\":\"0,100,101\",\"deptName\":\"研发部门\",\"orderNum\":1,\"leader\":\"若依\",\"phone\":null,\"email\":null,\"status\":\"0\",\"delFlag\":null,\"parentName\":null,\"children\":[]},\"roles\":[{\"searchValue\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{\"@type\":\"java.util.HashMap\"},\"roleId\":1,\"roleName\":\"超级管理员\",\"roleKey\":\"admin\",\"roleSort\":\"1\",\"dataScope\":\"1\",\"menuCheckStrictly\":false,\"deptCheckStrictly\":false,\"status\":\"0\",\"delFlag\":null,\"flag\":false,\"menuIds\":null,\"deptIds\":null,\"admin\":true}],\"roleIds\":null,\"postIds\":null,\"roleId\":null,\"admin\":true}}";
        return JSONObject.parseObject(str);
    }

    @GetMapping(value = "/getRouter",desc = "获取用户")
    public JSONObject getRouterController(){
        JSONObject object=new JSONObject();
        JSONArray array=menuService.getUserMenuList();
        object.put("code",200);
        object.put("msg","操作成功");
        object.put("data",array);
        return object;
    }

    @GetMapping(value = "/dict/data/type/sys_normal_disable")
    public JSONObject sysNormalDisableController(){
        String str = "{\"msg\":\"操作成功\",\"code\":200,\"data\":[{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:01:42\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"正常状态\",\"params\":{\"@type\":\"java.util.HashMap\"},\"dictCode\":6,\"dictSort\":1,\"dictLabel\":\"正常\",\"dictValue\":\"0\",\"dictType\":\"sys_normal_disable\",\"cssClass\":\"\",\"listClass\":\"primary\",\"isDefault\":\"Y\",\"status\":\"0\",\"default\":true},{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:01:43\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"停用状态\",\"params\":{\"@type\":\"java.util.HashMap\"},\"dictCode\":7,\"dictSort\":2,\"dictLabel\":\"停用\",\"dictValue\":\"1\",\"dictType\":\"sys_normal_disable\",\"cssClass\":\"\",\"listClass\":\"danger\",\"isDefault\":\"N\",\"status\":\"0\",\"default\":false}]}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        return jsonObject;
    }

    @GetMapping(value = "/user/list",desc = "用户列表")
    public JSONObject getUserListcController(){
        String str = "{\"total\":2,\"rows\":[{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:00:20\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"管理员\",\"params\":{},\"userId\":1,\"deptId\":103,\"userName\":\"admin\",\"nickName\":\"若依\",\"email\":\"ry@163.com\",\"phonenumber\":\"15888888888\",\"sex\":\"1\",\"avatar\":\"\",\"password\":null,\"status\":\"0\",\"delFlag\":\"0\",\"loginIp\":\"203.168.27.34\",\"loginDate\":\"2022-08-20T17:32:50.000+08:00\",\"dept\":{\"searchValue\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"deptId\":103,\"parentId\":null,\"ancestors\":null,\"deptName\":\"研发部门\",\"orderNum\":null,\"leader\":\"若依\",\"phone\":null,\"email\":null,\"status\":null,\"delFlag\":null,\"parentName\":null,\"children\":[]},\"roles\":[],\"roleIds\":null,\"postIds\":null,\"roleId\":null,\"admin\":true},{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:00:21\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"测试员\",\"params\":{},\"userId\":2,\"deptId\":105,\"userName\":\"ry\",\"nickName\":\"若依\",\"email\":\"ry@qq.com\",\"phonenumber\":\"15666666666\",\"sex\":\"1\",\"avatar\":\"\",\"password\":null,\"status\":\"0\",\"delFlag\":\"0\",\"loginIp\":\"27.18.81.172\",\"loginDate\":\"2022-08-20T17:01:22.000+08:00\",\"dept\":{\"searchValue\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"deptId\":105,\"parentId\":null,\"ancestors\":null,\"deptName\":\"测试部门\",\"orderNum\":null,\"leader\":\"若依\",\"phone\":null,\"email\":null,\"status\":null,\"delFlag\":null,\"parentName\":null,\"children\":[]},\"roles\":[],\"roleIds\":null,\"postIds\":null,\"roleId\":null,\"admin\":false}],\"code\":200,\"msg\":\"查询成功\"}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        return jsonObject;
    }

    @GetMapping(value = "/dept/treeselect",desc = "部门选择")
    public JSONObject deptTreeselect(){
        String str = "{\"msg\":\"操作成功\",\"code\":200,\"data\":[{\"id\":100,\"label\":\"若依科技\",\"children\":[{\"id\":101,\"label\":\"深圳总公司\",\"children\":[{\"id\":103,\"label\":\"研发部门\"},{\"id\":104,\"label\":\"市场部门\"},{\"id\":105,\"label\":\"测试部门\"},{\"id\":106,\"label\":\"财务部门\"},{\"id\":107,\"label\":\"运维部门\"}]},{\"id\":102,\"label\":\"长沙分公司\",\"children\":[{\"id\":108,\"label\":\"市场部门\"},{\"id\":109,\"label\":\"财务部门\"}]}]}]}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        JSONArray array=deptService.deptTreeList();
        return Result.success(array);
    }

    @GetMapping(value = "/dict/data/type/sys_user_sex")
    public JSONObject sysUserSexController(){
        String str = "{\"msg\":\"操作成功\",\"code\":200,\"data\":[{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:01:41\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"性别男\",\"params\":{\"@type\":\"java.util.HashMap\"},\"dictCode\":1,\"dictSort\":1,\"dictLabel\":\"男\",\"dictValue\":\"0\",\"dictType\":\"sys_user_sex\",\"cssClass\":\"\",\"listClass\":\"\",\"isDefault\":\"Y\",\"status\":\"0\",\"default\":true},{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:01:41\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"性别女\",\"params\":{\"@type\":\"java.util.HashMap\"},\"dictCode\":2,\"dictSort\":2,\"dictLabel\":\"女\",\"dictValue\":\"1\",\"dictType\":\"sys_user_sex\",\"cssClass\":\"\",\"listClass\":\"\",\"isDefault\":\"N\",\"status\":\"0\",\"default\":false},{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:01:42\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"性别未知\",\"params\":{\"@type\":\"java.util.HashMap\"},\"dictCode\":3,\"dictSort\":3,\"dictLabel\":\"未知\",\"dictValue\":\"2\",\"dictType\":\"sys_user_sex\",\"cssClass\":\"\",\"listClass\":\"\",\"isDefault\":\"N\",\"status\":\"0\",\"default\":false}]}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        return jsonObject;
    }

    @GetMapping(value = "/config/configKey/sys.user.initPassword",desc = "获取初始密码")
    public JSONObject getInitPassword(){
        String str = "{\"msg\":\"123456\",\"code\":200}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        return jsonObject;
    }

    @GetMapping(value = "/role/list",desc = "角色列表")
    public JSONObject roleListController(){
        String str = "{\"total\":2,\"rows\":[{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:28\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"超级管理员\",\"params\":{},\"roleId\":1,\"roleName\":\"超级管理员\",\"roleKey\":\"admin\",\"roleSort\":\"1\",\"dataScope\":\"1\",\"menuCheckStrictly\":true,\"deptCheckStrictly\":true,\"status\":\"0\",\"delFlag\":\"0\",\"flag\":false,\"menuIds\":null,\"deptIds\":null,\"admin\":true},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:28\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"普通角色\",\"params\":{},\"roleId\":2,\"roleName\":\"普通角色\",\"roleKey\":\"common\",\"roleSort\":\"2\",\"dataScope\":\"2\",\"menuCheckStrictly\":true,\"deptCheckStrictly\":true,\"status\":\"0\",\"delFlag\":\"0\",\"flag\":false,\"menuIds\":null,\"deptIds\":null,\"admin\":false}],\"code\":200,\"msg\":\"查询成功\"}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        return jsonObject;
    }

    @GetMapping(value = "/menu/list",desc = "菜单列表")
    public JSONObject menuListController(){
        String str = "{\"msg\":\"操作成功\",\"code\":200,\"data\":[{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:31\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1,\"menuName\":\"系统管理\",\"parentName\":null,\"parentId\":0,\"orderNum\":1,\"path\":\"system\",\"component\":null,\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"M\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"\",\"icon\":\"system\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:32\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":2,\"menuName\":\"系统监控\",\"parentName\":null,\"parentId\":0,\"orderNum\":2,\"path\":\"monitor\",\"component\":null,\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"M\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"\",\"icon\":\"monitor\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:32\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":3,\"menuName\":\"系统工具\",\"parentName\":null,\"parentId\":0,\"orderNum\":3,\"path\":\"tool\",\"component\":null,\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"M\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"\",\"icon\":\"tool\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:32\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":4,\"menuName\":\"若依官网\",\"parentName\":null,\"parentId\":0,\"orderNum\":4,\"path\":\"http://ruoyi.vip\",\"component\":null,\"query\":\"\",\"isFrame\":\"0\",\"isCache\":\"0\",\"menuType\":\"M\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"\",\"icon\":\"guide\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:32\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":100,\"menuName\":\"用户管理\",\"parentName\":null,\"parentId\":1,\"orderNum\":1,\"path\":\"user\",\"component\":\"system/user/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:user:list\",\"icon\":\"user\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:33\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":101,\"menuName\":\"角色管理\",\"parentName\":null,\"parentId\":1,\"orderNum\":2,\"path\":\"role\",\"component\":\"system/role/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:role:list\",\"icon\":\"peoples\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:33\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":102,\"menuName\":\"菜单管理\",\"parentName\":null,\"parentId\":1,\"orderNum\":3,\"path\":\"menu\",\"component\":\"system/menu/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:menu:list\",\"icon\":\"tree-table\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:33\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":103,\"menuName\":\"部门管理\",\"parentName\":null,\"parentId\":1,\"orderNum\":4,\"path\":\"dept\",\"component\":\"system/dept/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dept:list\",\"icon\":\"tree\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:34\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":104,\"menuName\":\"岗位管理\",\"parentName\":null,\"parentId\":1,\"orderNum\":5,\"path\":\"post\",\"component\":\"system/post/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:post:list\",\"icon\":\"post\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:34\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":105,\"menuName\":\"字典管理\",\"parentName\":null,\"parentId\":1,\"orderNum\":6,\"path\":\"dict\",\"component\":\"system/dict/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dict:list\",\"icon\":\"dict\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:34\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":106,\"menuName\":\"参数设置\",\"parentName\":null,\"parentId\":1,\"orderNum\":7,\"path\":\"config\",\"component\":\"system/config/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:config:list\",\"icon\":\"edit\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:35\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":107,\"menuName\":\"通知公告\",\"parentName\":null,\"parentId\":1,\"orderNum\":8,\"path\":\"notice\",\"component\":\"system/notice/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:notice:list\",\"icon\":\"message\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:35\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":108,\"menuName\":\"日志管理\",\"parentName\":null,\"parentId\":1,\"orderNum\":9,\"path\":\"log\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"M\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"\",\"icon\":\"log\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:35\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":109,\"menuName\":\"在线用户\",\"parentName\":null,\"parentId\":2,\"orderNum\":1,\"path\":\"online\",\"component\":\"monitor/online/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:online:list\",\"icon\":\"online\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:35\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":110,\"menuName\":\"定时任务\",\"parentName\":null,\"parentId\":2,\"orderNum\":2,\"path\":\"job\",\"component\":\"monitor/job/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:job:list\",\"icon\":\"job\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:36\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":111,\"menuName\":\"数据监控\",\"parentName\":null,\"parentId\":2,\"orderNum\":3,\"path\":\"druid\",\"component\":\"monitor/druid/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:druid:list\",\"icon\":\"druid\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:36\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":112,\"menuName\":\"服务监控\",\"parentName\":null,\"parentId\":2,\"orderNum\":4,\"path\":\"server\",\"component\":\"monitor/server/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:server:list\",\"icon\":\"server\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:36\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":113,\"menuName\":\"缓存监控\",\"parentName\":null,\"parentId\":2,\"orderNum\":5,\"path\":\"cache\",\"component\":\"monitor/cache/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:cache:list\",\"icon\":\"redis\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:37\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":114,\"menuName\":\"缓存列表\",\"parentName\":null,\"parentId\":2,\"orderNum\":6,\"path\":\"cacheList\",\"component\":\"monitor/cache/list\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:cache:list\",\"icon\":\"redis-list\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:37\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":115,\"menuName\":\"表单构建\",\"parentName\":null,\"parentId\":3,\"orderNum\":1,\"path\":\"build\",\"component\":\"tool/build/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:build:list\",\"icon\":\"build\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:37\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":116,\"menuName\":\"代码生成\",\"parentName\":null,\"parentId\":3,\"orderNum\":2,\"path\":\"gen\",\"component\":\"tool/gen/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:gen:list\",\"icon\":\"code\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:37\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":117,\"menuName\":\"系统接口\",\"parentName\":null,\"parentId\":3,\"orderNum\":3,\"path\":\"swagger\",\"component\":\"tool/swagger/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:swagger:list\",\"icon\":\"swagger\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:38\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1000,\"menuName\":\"用户查询\",\"parentName\":null,\"parentId\":100,\"orderNum\":1,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:user:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:39\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1001,\"menuName\":\"用户新增\",\"parentName\":null,\"parentId\":100,\"orderNum\":2,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:user:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:39\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1002,\"menuName\":\"用户修改\",\"parentName\":null,\"parentId\":100,\"orderNum\":3,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:user:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:39\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1003,\"menuName\":\"用户删除\",\"parentName\":null,\"parentId\":100,\"orderNum\":4,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:user:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:40\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1004,\"menuName\":\"用户导出\",\"parentName\":null,\"parentId\":100,\"orderNum\":5,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:user:export\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:40\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1005,\"menuName\":\"用户导入\",\"parentName\":null,\"parentId\":100,\"orderNum\":6,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:user:import\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:40\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1006,\"menuName\":\"重置密码\",\"parentName\":null,\"parentId\":100,\"orderNum\":7,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:user:resetPwd\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:40\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1007,\"menuName\":\"角色查询\",\"parentName\":null,\"parentId\":101,\"orderNum\":1,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:role:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:41\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1008,\"menuName\":\"角色新增\",\"parentName\":null,\"parentId\":101,\"orderNum\":2,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:role:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:41\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1009,\"menuName\":\"角色修改\",\"parentName\":null,\"parentId\":101,\"orderNum\":3,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:role:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:41\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1010,\"menuName\":\"角色删除\",\"parentName\":null,\"parentId\":101,\"orderNum\":4,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:role:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:42\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1011,\"menuName\":\"角色导出\",\"parentName\":null,\"parentId\":101,\"orderNum\":5,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:role:export\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:42\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1012,\"menuName\":\"菜单查询\",\"parentName\":null,\"parentId\":102,\"orderNum\":1,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:menu:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:42\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1013,\"menuName\":\"菜单新增\",\"parentName\":null,\"parentId\":102,\"orderNum\":2,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:menu:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:42\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1014,\"menuName\":\"菜单修改\",\"parentName\":null,\"parentId\":102,\"orderNum\":3,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:menu:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:43\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1015,\"menuName\":\"菜单删除\",\"parentName\":null,\"parentId\":102,\"orderNum\":4,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:menu:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:43\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1016,\"menuName\":\"部门查询\",\"parentName\":null,\"parentId\":103,\"orderNum\":1,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dept:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:43\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1017,\"menuName\":\"部门新增\",\"parentName\":null,\"parentId\":103,\"orderNum\":2,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dept:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:44\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1018,\"menuName\":\"部门修改\",\"parentName\":null,\"parentId\":103,\"orderNum\":3,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dept:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:44\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1019,\"menuName\":\"部门删除\",\"parentName\":null,\"parentId\":103,\"orderNum\":4,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dept:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:44\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1020,\"menuName\":\"岗位查询\",\"parentName\":null,\"parentId\":104,\"orderNum\":1,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:post:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:44\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1021,\"menuName\":\"岗位新增\",\"parentName\":null,\"parentId\":104,\"orderNum\":2,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:post:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:45\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1022,\"menuName\":\"岗位修改\",\"parentName\":null,\"parentId\":104,\"orderNum\":3,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:post:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:45\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1023,\"menuName\":\"岗位删除\",\"parentName\":null,\"parentId\":104,\"orderNum\":4,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:post:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:45\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1024,\"menuName\":\"岗位导出\",\"parentName\":null,\"parentId\":104,\"orderNum\":5,\"path\":\"\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:post:export\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:45\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1025,\"menuName\":\"字典查询\",\"parentName\":null,\"parentId\":105,\"orderNum\":1,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dict:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:46\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1026,\"menuName\":\"字典新增\",\"parentName\":null,\"parentId\":105,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dict:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:46\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1027,\"menuName\":\"字典修改\",\"parentName\":null,\"parentId\":105,\"orderNum\":3,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dict:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:46\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1028,\"menuName\":\"字典删除\",\"parentName\":null,\"parentId\":105,\"orderNum\":4,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dict:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:47\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1029,\"menuName\":\"字典导出\",\"parentName\":null,\"parentId\":105,\"orderNum\":5,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:dict:export\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:47\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1030,\"menuName\":\"参数查询\",\"parentName\":null,\"parentId\":106,\"orderNum\":1,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:config:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:47\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1031,\"menuName\":\"参数新增\",\"parentName\":null,\"parentId\":106,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:config:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:47\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1032,\"menuName\":\"参数修改\",\"parentName\":null,\"parentId\":106,\"orderNum\":3,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:config:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:48\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1033,\"menuName\":\"参数删除\",\"parentName\":null,\"parentId\":106,\"orderNum\":4,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:config:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:48\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1034,\"menuName\":\"参数导出\",\"parentName\":null,\"parentId\":106,\"orderNum\":5,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:config:export\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:48\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1035,\"menuName\":\"公告查询\",\"parentName\":null,\"parentId\":107,\"orderNum\":1,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:notice:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:49\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1036,\"menuName\":\"公告新增\",\"parentName\":null,\"parentId\":107,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:notice:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:49\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1037,\"menuName\":\"公告修改\",\"parentName\":null,\"parentId\":107,\"orderNum\":3,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:notice:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:49\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1038,\"menuName\":\"公告删除\",\"parentName\":null,\"parentId\":107,\"orderNum\":4,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"system:notice:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:38\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":500,\"menuName\":\"操作日志\",\"parentName\":null,\"parentId\":108,\"orderNum\":1,\"path\":\"operlog\",\"component\":\"monitor/operlog/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:operlog:list\",\"icon\":\"form\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:38\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":501,\"menuName\":\"登录日志\",\"parentName\":null,\"parentId\":108,\"orderNum\":2,\"path\":\"logininfor\",\"component\":\"monitor/logininfor/index\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:logininfor:list\",\"icon\":\"logininfor\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:51\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1045,\"menuName\":\"在线查询\",\"parentName\":null,\"parentId\":109,\"orderNum\":1,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:online:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:51\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1046,\"menuName\":\"批量强退\",\"parentName\":null,\"parentId\":109,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:online:batchLogout\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:52\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1047,\"menuName\":\"单条强退\",\"parentName\":null,\"parentId\":109,\"orderNum\":3,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:online:forceLogout\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:52\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1048,\"menuName\":\"任务查询\",\"parentName\":null,\"parentId\":110,\"orderNum\":1,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:job:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:52\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1049,\"menuName\":\"任务新增\",\"parentName\":null,\"parentId\":110,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:job:add\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:52\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1050,\"menuName\":\"任务修改\",\"parentName\":null,\"parentId\":110,\"orderNum\":3,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:job:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:53\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1051,\"menuName\":\"任务删除\",\"parentName\":null,\"parentId\":110,\"orderNum\":4,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:job:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:53\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1052,\"menuName\":\"状态修改\",\"parentName\":null,\"parentId\":110,\"orderNum\":5,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:job:changeStatus\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:53\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1053,\"menuName\":\"任务导出\",\"parentName\":null,\"parentId\":110,\"orderNum\":7,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:job:export\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:54\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1054,\"menuName\":\"生成查询\",\"parentName\":null,\"parentId\":115,\"orderNum\":1,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:gen:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:54\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1055,\"menuName\":\"生成修改\",\"parentName\":null,\"parentId\":115,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:gen:edit\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:54\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1057,\"menuName\":\"导入代码\",\"parentName\":null,\"parentId\":115,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:gen:import\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:54\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1056,\"menuName\":\"生成删除\",\"parentName\":null,\"parentId\":115,\"orderNum\":3,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:gen:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:55\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1058,\"menuName\":\"预览代码\",\"parentName\":null,\"parentId\":115,\"orderNum\":4,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:gen:preview\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:55\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1059,\"menuName\":\"生成代码\",\"parentName\":null,\"parentId\":115,\"orderNum\":5,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"tool:gen:code\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:49\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1039,\"menuName\":\"操作查询\",\"parentName\":null,\"parentId\":500,\"orderNum\":1,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:operlog:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:50\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1040,\"menuName\":\"操作删除\",\"parentName\":null,\"parentId\":500,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:operlog:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:50\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1041,\"menuName\":\"日志导出\",\"parentName\":null,\"parentId\":500,\"orderNum\":4,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:operlog:export\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:50\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1042,\"menuName\":\"登录查询\",\"parentName\":null,\"parentId\":501,\"orderNum\":1,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:logininfor:query\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:51\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1043,\"menuName\":\"登录删除\",\"parentName\":null,\"parentId\":501,\"orderNum\":2,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:logininfor:remove\",\"icon\":\"#\",\"children\":[]},{\"searchValue\":null,\"createBy\":null,\"createTime\":\"2022-08-01 12:00:51\",\"updateBy\":null,\"updateTime\":null,\"remark\":null,\"params\":{},\"menuId\":1044,\"menuName\":\"日志导出\",\"parentName\":null,\"parentId\":501,\"orderNum\":3,\"path\":\"#\",\"component\":\"\",\"query\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"F\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"monitor:logininfor:export\",\"icon\":\"#\",\"children\":[]}]}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        JSONObject object=new JSONObject();
        List<SysMenu> sysMenuList=menuService.list();
        object.put("code",200);
        object.put("msg","操作成功");
        object.put("data",sysMenuList);
        return object;
    }

    @GetMapping(value = "/dict/data/type/sys_show_hide")
    public JSONObject sysShowHideController(){
        String str = "{\"msg\":\"操作成功\",\"code\":200,\"data\":[{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:01:42\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"显示菜单\",\"params\":{\"@type\":\"java.util.HashMap\"},\"dictCode\":4,\"dictSort\":1,\"dictLabel\":\"显示\",\"dictValue\":\"0\",\"dictType\":\"sys_show_hide\",\"cssClass\":\"\",\"listClass\":\"primary\",\"isDefault\":\"Y\",\"status\":\"0\",\"default\":true},{\"searchValue\":null,\"createBy\":\"admin\",\"createTime\":\"2022-08-01 12:01:42\",\"updateBy\":null,\"updateTime\":null,\"remark\":\"隐藏菜单\",\"params\":{\"@type\":\"java.util.HashMap\"},\"dictCode\":5,\"dictSort\":2,\"dictLabel\":\"隐藏\",\"dictValue\":\"1\",\"dictType\":\"sys_show_hide\",\"cssClass\":\"\",\"listClass\":\"danger\",\"isDefault\":\"N\",\"status\":\"0\",\"default\":false}]}";
        JSONObject jsonObject=JSONObject.parseObject(str);
        return jsonObject;
    }

    @GetMapping(value = "/menugetone",desc = "菜单获取一个")
    public JSONObject menuGetOneController(@Param("id")String id){
        SysMenu sysMenu=menuService.getSysMenuById(id);
        return Result.success(sysMenu);
    }



    @PostMapping(value = "/savemenu",desc = "保存/修改菜单")
    public JSONObject saveMenuController(@RequestBody SysMenu sysMenu){

        if(sysMenu.getMenu_id()!=null){
            SysMenu sysObj=menuService.getSysMenuById(sysMenu.getMenu_id());
            if(sysObj==null){
                return Result.error("修改的菜单不存在");
            }
            if(!sysObj.getComponent().equals(sysMenu.getComponent())){
                SysMenu sys=menuService.getSysMenuByComponent(sysMenu.getComponent());
                if (sys != null ) {
                    return Result.error("存在相同组件路径");
                }
            }
            if(!sysObj.getPath().equals(sysMenu.getPath())){
                SysMenu sysPath=menuService.getSysMenuByPath(sysMenu.getPath());
                if (sysPath != null) {
                    return Result.error("存在相同路径");
                }
            }
            menuService.updateById(sysMenu);
            return Result.success("修改成功");
        }
        if("C".equals(sysMenu.getMenuType())){
            SysMenu sys=menuService.getSysMenuByComponent(sysMenu.getComponent());
            if (sys != null) {
                return Result.error("存在相同组件路径");
            }
        }
        if("C".equals(sysMenu.getMenuType()) || "M".equals(sysMenu.getMenuType())){
            SysMenu sysPath=menuService.getSysMenuByPath(sysMenu.getPath());
            if (sysPath != null) {
                return Result.error("存在相同路径");
            }
        }
        menuService.save(sysMenu);

        return Results.success("新增成功");
    }

    @Autowired
    DeptService deptService;

    @GetMapping(value = "/dept/list",desc = "部门列表")
    public JSONObject deptListController(){
        List<SysDept> sysDeptList=deptService.list();
        return Result.success(sysDeptList);
    }

    @PostMapping(value = "/deptsave",desc = "保存部门")
    public JSONObject saveDeptController(@RequestBody SysDept sysDept){
        deptService.save(sysDept);
        return Result.success("保存成功");
    }

    @GetMapping(value = "/deptgetone",desc = "部门获取单个")
    public JSONObject getDeptOneByIdController(@Param("id")Object id){
        SysDept sysDept=deptService.getById(id);
        return Result.success(sysDept);
    }

    @GetMapping(value = "/deptexclude",desc = "排除自己及其子列表")
    public JSONObject excludeController(@Param("id")Object id){
        List<SysDept> sysDeptList=deptService.excludeList(id);
        return Result.success(sysDeptList);
    }

    @GetMapping(value = "/menulist",desc = "菜单列表")
    public JSONObject menuLisctController(){
        List<SysMenu> sysMenuList=menuService.list();
        return Results.success(sysMenuList);
    }
}
